package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 电池信息表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_battery_info")
@ApiModel(value = "XhBatteryInfo对象", description = "电池信息表")
public class XhBatteryInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("电池名称")
    private String name;

    @ApiModelProperty("匹配符，多个逗号隔开")
    private String regex;

    @ApiModelProperty("电池类型：1.锂离子电池2.铅酸电池3.镍氢电池")
    private Integer batteryType;

    @ApiModelProperty("电压(V)")
    private Integer voltage;

    @ApiModelProperty("安时(Ah)")
    private Integer ampereHour;

    @ApiModelProperty("尺寸")
    private String size;

    @ApiModelProperty("电池重量(kg)")
    private BigDecimal weight;

    @ApiModelProperty("可用电量")
    private String energy;

    @ApiModelProperty("可用公里数(km)")
    private BigDecimal mileage;

    @ApiModelProperty("可用时长(单位分钟)")
    private BigDecimal duration;

    @ApiModelProperty("市场售价")
    private BigDecimal marketPrice;

    @ApiModelProperty("描述")
    private String batteryDes;

    @ApiModelProperty("是否启用：0.否1.是(默认)")
    private Integer isEnabled;

    @ApiModelProperty("是否删除：0.否(默认)1.是")
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDeleted;

    @ApiModelProperty("创建人ID")
    private Integer creatorId;

    @ApiModelProperty("创建人")
    private String creator;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date modifyTime;

}
